package com.huonan.jb.tools.hdfsuse;


import com.huonan.utils.HDFSUtil;
import org.apache.hadoop.fs.FileSystem;

/**
 * @Description HDFS
 * @Author lxp
 * @Date 2023/5/4 上午10:21
 * @Version V1.0
 **/
public class App {
    public static void main(String[] args) throws Exception {

        String sourceFile = "viewfs://nbns///user/quantum_social/services/das/product/bayou/20230504/wenda/zhihu" +
                ".com/data_1683165009048.zip";
        String tmpFile = "./";
        FileSystem fs = HDFSUtil.getFs("quantum_social");
        HDFSUtil.downHdfsFileToLocal(sourceFile, tmpFile);

    }
}
